<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交论坛展示</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4F46E5;
            --primary-light: #818CF8;
            --primary-dark: #3730A3;
            --secondary: #10B981;
            --light-bg: #F8FAFC;
            --card-bg: #FFFFFF;
            --text-primary: #1E293B;
            --text-secondary: #64748B;
            --border-light: #E2E8F0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: var(--light-bg);
            color: var(--text-primary);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1400px;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            position: relative;
            padding-bottom: 0.75rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px;
        }
        
        .section-description {
            color: var(--text-secondary);
            max-width: 800px;
        }
        
        /* 论坛卡片基础样式 */
        .forum-card {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            margin-bottom: 1.5rem;
            border: none;
        }
        
        .forum-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }
        
        .forum-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .forum-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            transition: var(--transition);
        }
        
        .forum-title a {
            color: var(--text-primary);
            text-decoration: none;
        }
        
        .forum-title a:hover {
            color: var(--primary);
        }
        
        .forum-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .forum-content {
            padding: 1.25rem;
        }
        
        .forum-desc {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .forum-media {
            margin-bottom: 1rem;
            border-radius: var(--radius);
            overflow: hidden;
        }
        
        .media-single {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        
        .media-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
        }
        
        .media-grid img {
            width: 100%;
            height: 100px;
            object-fit: cover;
        }
        
        .media-grid img:first-child {
            grid-column: span 2;
            grid-row: span 2;
            height: 204px;
        }
        
        .forum-footer {
            padding: 0.75rem 1.25rem;
            border-top: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .forum-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .forum-tag {
            font-size: 0.8rem;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            background-color: rgba(79, 70, 229, 0.1);
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .forum-tag:hover {
            background-color: rgba(79, 70, 229, 0.2);
            color: var(--primary-dark);
        }
        
        .forum-actions {
            display: flex;
            gap: 1rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            color: var(--primary);
            background-color: rgba(79, 70, 229, 0.05);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 布局变体 */
        .list-view .forum-card {
            display: flex;
            height: 220px;
        }
        
        .list-view .forum-media {
            width: 30%;
            margin: 0;
            border-radius: var(--radius) 0 0 var(--radius);
        }
        
        .list-view .media-single {
            height: 100%;
            border-radius: var(--radius) 0 0 var(--radius);
        }
        
        .list-view .media-grid {
            height: 100%;
        }
        
        .list-view .media-grid img {
            height: 100%;
        }
        
        .list-view .media-grid img:first-child {
            height: 100%;
        }
        
        .list-view .forum-body {
            width: 70%;
            display: flex;
            flex-direction: column;
        }
        
        .grid-view {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .featured-view .forum-card {
            border-radius: var(--radius);
            overflow: hidden;
        }
        
        .featured-view .forum-media {
            margin: 0;
        }
        
        .featured-view .media-single {
            height: 300px;
        }
        
        .featured-view .forum-content {
            padding: 1.5rem;
        }
        
        .featured-view .forum-title {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        .featured-view .forum-desc {
            font-size: 1.05rem;
            -webkit-line-clamp: 3;
            margin-bottom: 1rem;
        }
        
        .compact-view .forum-card {
            padding: 1rem;
        }
        
        .compact-view .forum-header {
            padding: 0 0 0.5rem 0;
            border: none;
        }
        
        .compact-view .forum-content {
            padding: 0.5rem 0;
        }
        
        .compact-view .forum-title {
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .compact-view .forum-desc {
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }
        
        .compact-view .forum-footer {
            padding: 0.5rem 0 0 0;
            border: none;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .stat-card {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            text-align: center;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
        
        /* 导航样式 */
        .nav-tabs {
            margin-bottom: 2rem;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-tabs .nav-link {
            color: var(--text-secondary);
            font-weight: 500;
            border: none;
            border-bottom: 2px solid transparent;
            padding: 0.75rem 1.5rem;
            transition: var(--transition);
        }
        
        .nav-tabs .nav-link.active {
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
            background-color: transparent;
        }
        
        .nav-tabs .nav-link:hover:not(.active) {
            color: var(--text-primary);
            border-bottom: 2px solid var(--border-light);
            background-color: transparent;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .list-view .forum-card {
                flex-direction: column;
                height: auto;
            }
            
            .list-view .forum-media,
            .list-view .forum-body {
                width: 100%;
            }
            
            .list-view .media-single {
                border-radius: var(--radius) var(--radius) 0 0;
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.5rem;
            }
            
            .featured-view .media-single {
                height: 220px;
            }
            
            .media-grid img {
                height: 80px;
            }
            
            .media-grid img:first-child {
                height: 164px;
            }
            
            .forum-meta {
                gap: 1rem;
            }
        }
        
        @media (max-width: 576px) {
            .forum-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .forum-actions {
                width: 100%;
                justify-content: space-between;
            }
            
            .media-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .media-grid img:first-child {
                grid-column: span 1;
                grid-row: span 1;
                height: 80px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container py-5 px-4">
        <!-- 统计数据 -->
        <div class="stats-grid">
            <div class="stat-card">
                <div class="stat-number">248</div>
                <div class="stat-label">活跃论坛</div>
            </div>
            <div class="stat-card">
                <div class="stat-number">15.6k</div>
                <div class="stat-label">总帖子数</div>
            </div>
            <div class="stat-card">
                <div class="stat-number">89.2k</div>
                <div class="stat-label">总浏览量</div>
            </div>
            <div class="stat-card">
                <div class="stat-number">12.5k</div>
                <div class="stat-label">活跃用户</div>
            </div>
        </div>
        
        <!-- 导航标签 -->
        <ul class="nav nav-tabs">
            <li class="nav-item">
                <a class="nav-link active" aria-current="page" href="#">全部论坛</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">热门话题</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">最新创建</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">已收藏</a>
            </li>
        </ul>
        
        <!-- 精选论坛区 -->
        <section class="mb-10">
            <div class="section-header">
                <h2 class="section-title">精选论坛</h2>
                <p class="section-description">这些是平台上最活跃、内容质量最高的论坛，涵盖各种热门话题和兴趣领域。</p>
            </div>
            
            <div class="featured-view">
                <div class="forum-card">
                    <div class="forum-media">
                        <img src="https://picsum.photos/id/1040/1200/300" alt="科技前沿论坛封面" class="media-single">
                    </div>
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">科技前沿论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>12.8k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>3.2k 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            讨论最新科技趋势、人工智能发展、区块链应用、元宇宙概念以及各类数码产品评测。这里汇聚了众多科技爱好者和行业专家，分享前沿资讯和独到见解。无论你是科技小白还是专业人士，都能在这里找到有价值的内容和志同道合的朋友。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">人工智能</a>
                            <a href="#" class="forum-tag">数码产品</a>
                            <a href="#" class="forum-tag">科技新闻</a>
                            <a href="#" class="forum-tag">未来趋势</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span>已收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 列表布局论坛区 -->
        <section class="mb-10">
            <div class="section-header">
                <h2 class="section-title">热门论坛</h2>
                <p class="section-description">这些论坛拥有大量活跃用户和高质量讨论，是平台上最受欢迎的社区。</p>
            </div>
            
            <div class="list-view">
                <!-- 带单张图片的论坛 -->
                <div class="forum-card">
                    <div class="forum-media">
                        <img src="https://picsum.photos/id/292/400/300" alt="旅行摄影论坛封面" class="media-single">
                    </div>
                    <div class="forum-body">
                        <div class="forum-header">
                            <h3 class="forum-title">
                                <a href="#">旅行摄影论坛</a>
                            </h3>
                            <div class="forum-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>9.5k 浏览</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i>
                                    <span>2.1k 帖子</span>
                                </div>
                            </div>
                        </div>
                        <div class="forum-content">
                            <p class="forum-desc">
                                分享旅行见闻、摄影技巧和绝美风景照片。无论你是专业摄影师还是业余爱好者，都能在这里找到灵感和实用建议。论坛定期举办摄影比赛和线上分享会，帮助成员提升技能。
                            </p>
                        </div>
                        <div class="forum-footer">
                            <div class="forum-tags">
                                <a href="#" class="forum-tag">旅行</a>
                                <a href="#" class="forum-tag">摄影</a>
                                <a href="#" class="forum-tag">风景</a>
                            </div>
                            <div class="forum-actions">
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的论坛 -->
                <div class="forum-card">
                    <div class="forum-body" style="width: 100%;">
                        <div class="forum-header">
                            <h3 class="forum-title">
                                <a href="#">财经投资论坛</a>
                            </h3>
                            <div class="forum-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>15.2k 浏览</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i>
                                    <span>4.8k 帖子</span>
                                </div>
                            </div>
                        </div>
                        <div class="forum-content">
                            <p class="forum-desc">
                                讨论股票、基金、加密货币等投资产品，分享市场分析和投资策略。论坛有专业的金融分析师定期发布研究报告，帮助普通投资者了解市场动态，做出明智的投资决策。
                            </p>
                        </div>
                        <div class="forum-footer">
                            <div class="forum-tags">
                                <a href="#" class="forum-tag">股票</a>
                                <a href="#" class="forum-tag">基金</a>
                                <a href="#" class="forum-tag">投资</a>
                                <a href="#" class="forum-tag">理财</a>
                            </div>
                            <div class="forum-actions">
                                <button class="action-btn saved">
                                    <i class="fas fa-bookmark"></i>
                                    <span>已收藏</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 带多张图片的论坛 -->
                <div class="forum-card">
                    <div class="forum-media">
                        <div class="media-grid">
                            <img src="https://picsum.photos/id/431/400/400" alt="美食制作展示">
                            <img src="https://picsum.photos/id/292/200/200" alt="餐厅推荐">
                            <img src="https://picsum.photos/id/488/200/200" alt="烘焙作品">
                            <img src="https://picsum.photos/id/312/200/200" alt="美食摄影">
                        </div>
                    </div>
                    <div class="forum-body">
                        <div class="forum-header">
                            <h3 class="forum-title">
                                <a href="#">美食爱好者论坛</a>
                            </h3>
                            <div class="forum-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>18.7k 浏览</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i>
                                    <span>5.3k 帖子</span>
                                </div>
                            </div>
                        </div>
                        <div class="forum-content">
                            <p class="forum-desc">
                                分享食谱、烹饪技巧、餐厅推荐和美食摄影。从家常菜到米其林料理，从甜点到主菜，这里有各种美食相关的内容。会员们经常组织线下美食聚会，一起探索城市中的隐藏美食。
                            </p>
                        </div>
                        <div class="forum-footer">
                            <div class="forum-tags">
                                <a href="#" class="forum-tag">美食</a>
                                <a href="#" class="forum-tag">烹饪</a>
                                <a href="#" class="forum-tag">餐厅</a>
                                <a href="#" class="forum-tag">烘焙</a>
                            </div>
                            <div class="forum-actions">
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 网格布局论坛区 -->
        <section class="mb-10">
            <div class="section-header">
                <h2 class="section-title">兴趣分类论坛</h2>
                <p class="section-description">按兴趣分类的特色论坛，找到你感兴趣的话题社区。</p>
            </div>
            
            <div class="grid-view">
                <!-- 网格项1 - 单图 -->
                <div class="forum-card">
                    <div class="forum-media">
                        <img src="https://picsum.photos/id/1059/600/400" alt="健身论坛封面" class="media-single">
                    </div>
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">健身与健康论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>7.2k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>1.8k 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            分享健身计划、营养知识和健康生活方式。无论你是健身新手还是健身达人，都能在这里找到适合自己的内容。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">健身</a>
                            <a href="#" class="forum-tag">健康</a>
                            <a href="#" class="forum-tag">营养</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span></span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 网格项2 - 无图 -->
                <div class="forum-card">
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">读书与写作论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>6.5k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>2.3k 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            讨论各类书籍、分享阅读心得、交流写作技巧。定期举办线上读书会和写作工坊，帮助成员提升读写能力。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">文学</a>
                            <a href="#" class="forum-tag">阅读</a>
                            <a href="#" class="forum-tag">写作</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span></span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 网格项3 - 多图 -->
                <div class="forum-card">
                    <div class="forum-media">
                        <div class="media-grid">
                            <img src="https://picsum.photos/id/163/400/400" alt="游戏截图1">
                            <img src="https://picsum.photos/id/169/200/200" alt="游戏截图2">
                            <img src="https://picsum.photos/id/175/200/200" alt="游戏截图3">
                        </div>
                    </div>
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">游戏爱好者论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>14.3k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>6.7k 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            讨论最新游戏、分享攻略技巧、组织线上线下游戏活动。涵盖主机游戏、PC游戏、手机游戏等多个平台。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">电子游戏</a>
                            <a href="#" class="forum-tag">攻略</a>
                            <a href="#" class="forum-tag">电竞</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span></span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 网格项4 - 单图 -->
                <div class="forum-card">
                    <div class="forum-media">
                        <img src="https://picsum.photos/id/325/600/400" alt="电影论坛封面" class="media-single">
                    </div>
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">电影与剧集论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>11.8k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>3.5k 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            评论最新电影和剧集，分享观影心得，讨论影视制作背后的故事。从好莱坞大片到独立电影，应有尽有。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">电影</a>
                            <a href="#" class="forum-tag">电视剧</a>
                            <a href="#" class="forum-tag">影评</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span></span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 网格项5 - 无图 -->
                <div class="forum-card">
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">职场与职业发展论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>8.7k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>2.9k 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            分享职场经验、求职技巧、职业规划建议。有各行各业的专业人士提供行业洞察和职业发展指导。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">职场</a>
                            <a href="#" class="forum-tag">求职</a>
                            <a href="#" class="forum-tag">职业规划</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span></span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 网格项6 - 多图 -->
                <div class="forum-card">
                    <div class="forum-media">
                        <div class="media-grid">
                            <img src="https://picsum.photos/id/118/400/400" alt="音乐现场1">
                            <img src="https://picsum.photos/id/1074/200/200" alt="音乐专辑封面1">
                            <img src="https://picsum.photos/id/1082/200/200" alt="音乐专辑封面2">
                        </div>
                    </div>
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">音乐爱好者论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>9.2k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>2.4k 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            分享音乐推荐、讨论音乐风格、交流乐器演奏技巧。涵盖流行、摇滚、古典、爵士等多种音乐类型。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">音乐</a>
                            <a href="#" class="forum-tag">演唱会</a>
                            <a href="#" class="forum-tag">乐器</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span></span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 紧凑布局论坛区 -->
        <section>
            <div class="section-header">
                <h2 class="section-title">最新创建论坛</h2>
                <p class="section-description">平台上最新创建的论坛，欢迎加入并参与讨论。</p>
            </div>
            
            <div class="compact-view">
                <!-- 紧凑项1 -->
                <div class="forum-card">
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">可持续生活论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>1.2k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>356 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            讨论环保生活方式、零浪费理念、可持续消费和生态保护。分享实用的环保技巧和绿色生活经验。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">环保</a>
                            <a href="#" class="forum-tag">可持续</a>
                            <a href="#" class="forum-tag">绿色生活</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 紧凑项2 -->
                <div class="forum-card">
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">家庭教育论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>2.1k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>542 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            交流育儿经验、教育方法和亲子活动。为不同年龄段孩子的父母提供专业的教育建议和支持。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">育儿</a>
                            <a href="#" class="forum-tag">教育</a>
                            <a href="#" class="forum-tag">亲子</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span>已收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 紧凑项3 -->
                <div class="forum-card">
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">手工艺术论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>1.8k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>428 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            分享手工制作教程、展示手工作品、交流创作经验。涵盖陶艺、编织、纸艺、木工等多种手工艺术形式。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">手工</a>
                            <a href="#" class="forum-tag">艺术</a>
                            <a href="#" class="forum-tag">DIY</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 紧凑项4 -->
                <div class="forum-card">
                    <div class="forum-header">
                        <h3 class="forum-title">
                            <a href="#">远程工作论坛</a>
                        </h3>
                        <div class="forum-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>2.5k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>673 帖子</span>
                            </div>
                        </div>
                    </div>
                    <div class="forum-content">
                        <p class="forum-desc">
                            讨论远程工作技巧、居家办公设备、线上协作工具和远程职业机会。帮助远程工作者提高工作效率和平衡工作生活。
                        </p>
                    </div>
                    <div class="forum-footer">
                        <div class="forum-tags">
                            <a href="#" class="forum-tag">远程工作</a>
                            <a href="#" class="forum-tag">居家办公</a>
                            <a href="#" class="forum-tag">数字游民</a>
                        </div>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 收藏功能
            const saveButtons = document.querySelectorAll('.action-btn').forEach(button => {
                const icon = button.querySelector('.fa-bookmark');
                const text = button.querySelector('span');
                
                button.addEventListener('click', function() {
                    if (this.classList.contains('saved')) {
                        // 取消收藏
                        this.classList.remove('saved');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        if (text) text.textContent = '收藏';
                    } else {
                        // 收藏
                        this.classList.add('saved');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        if (text) text.textContent = '已收藏';
                    }
                });
            });
            
            // 导航标签切换
            const navLinks = document.querySelectorAll('.nav-link');
            navLinks.forEach(link => {
                link.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    // 移除所有活跃状态
                    navLinks.forEach(l => l.classList.remove('active'));
                    
                    // 添加当前活跃状态
                    this.classList.add('active');
                    
                    // 在实际应用中，这里会加载对应标签的内容
                    const tabName = this.textContent.trim();
                    console.log(`切换到 ${tabName} 标签`);
                });
            });
        });
    </script>
</body>
</html>
    
